Apache Spark Different Execution Mode